
package com.ukefu.webim.web.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Proxy;

import com.ukefu.util.event.UserEvent;

@Entity
@Table(name = "uk_callcenter_event_sip")
@Proxy(lazy = false)
public class StatusEventSip implements Serializable, UserEvent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2796276564445713776L;

	private String id ;
	private Date createtime = new Date();
	private Date updatetime = new Date() ;
	
	private String code ;

	private String creater ;		//变更用处，标识是否已接通
	
	private String orgi ;
	private String tracesip ;
	private String answersip ;
	private String hangupsip ;
	
	public StatusEventSip() {}
	public StatusEventSip(String id , String orgi ,Date createtime , String tracesip) {
		this.id = id ;
		this.orgi = orgi ;
		this.createtime = createtime ;
		this.tracesip= tracesip ;
	}
	
	@Id
	@Column(length = 32)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "assigned")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getOrgi() {
		return orgi;
	}
	public void setOrgi(String orgi) {
		this.orgi = orgi;
	}
	public String getTracesip() {
		return tracesip;
	}
	public void setTracesip(String tracesip) {
		this.tracesip = tracesip;
	}
	public String getAnswersip() {
		return answersip;
	}
	public void setAnswersip(String answersip) {
		this.answersip = answersip;
	}
	public String getHangupsip() {
		return hangupsip;
	}
	public void setHangupsip(String hangupsip) {
		this.hangupsip = hangupsip;
	}
	
}
